<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>title</title>
    <script th:src="@{/static/bootstrap-3.4.1-dist/js/bootstrap.js}"></script>
    <link rel="stylesheet" th:href="@{/static/bootstrap-3.4.1-dist/css/bootstrap.css}">
</head>
<body>
<div class="container">
    <h3>dept's list page</h3>
    <hr>
    <a th:href="@{/dept/to/save}">添加</a>
    <table class="table table-hover table-striped">
        <tr>
            <th>部门编号</th>
            <th>部门名称</th>
            <th>部门城市</th>
            <th>部门级别</th>
        </tr>
        <tr th:each="dept: ${deptList}">
            <td th:text="${dept.deptId}"></td>
            <td th:text="${dept.deptName}"></td>
            <td th:text="${dept.deptLoc}"></td>
            <td th:text="${dept.deptLev}"></td>
        </tr>
    </table>

</div>

<!--<div th:text="${deptList}"></div>-->
</body>
</html>